package com.social.service;

import java.util.List;

import com.base.entity.QueryParams;
import com.social.daoEx.UserTopicCommentMapperEx;
import com.social.daoEx.model.UserTopicCommentEx;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.social.dao.UserTopicCommentMapper;
import com.social.dao.model.UserTopicComment;
import com.social.dao.model.UserTopicCommentExample;

@Service
public class UserTopicCommentService {
	@Autowired
	private UserTopicCommentMapper userTopicCommentMapper;
	@Autowired
	private UserTopicCommentMapperEx userTopicCommentMapperEx;

	public int countByExample(UserTopicCommentExample example) {
		return this.userTopicCommentMapper.countByExample(example);
	}

	public UserTopicComment selectByPrimaryKey(Integer id) {
		return this.userTopicCommentMapper.selectByPrimaryKey(id);
	}

	public List<UserTopicComment> selectByExample(UserTopicCommentExample example) {
		return this.userTopicCommentMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(Integer id) {
		return this.userTopicCommentMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(UserTopicComment record) {
		return this.userTopicCommentMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(UserTopicComment record) {
		return this.userTopicCommentMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(UserTopicCommentExample example) {
		return this.userTopicCommentMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(UserTopicComment record, UserTopicCommentExample example) {
		return this.userTopicCommentMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(UserTopicComment record, UserTopicCommentExample example) {
		return this.userTopicCommentMapper.updateByExample(record, example);
	}

	public int insert(UserTopicComment record) {
		return this.userTopicCommentMapper.insert(record);
	}

	public int insertSelective(UserTopicComment record) {
		return this.userTopicCommentMapper.insertSelective(record);
	}

	public List<UserTopicCommentEx> selectAppList(Integer id){
		return this.userTopicCommentMapperEx.selectAppList(id);
	}

	public List<UserTopicCommentEx> selectList(QueryParams.Builder builder){
		return this.userTopicCommentMapperEx.selectList(builder);
	}
}
